import axios from "axios";

/**
 * 读取JSON数据
 * @param url 网络地址
 * @template T 返回的类型
 */
export default async function ReadJson<T = any>(url: string): Promise<T> {
	const { data } = await axios.get(url);
	return data;
}
